<?php


namespace app\api\model;


class Notice extends BaseModel {
    protected $visible = ['id','title','content','url','createtime'];

    public function getNoticeList($page,$pagesize=''){
        $pagesize = $pagesize ? $pagesize : $this->pagesize;
        $start = ( $page - 1 ) * $pagesize;
        return self::order('id desc')->limit($start,$pagesize)->select();
    }

}